package com.thread.domain.notify;

import com.thread.domain.util.SleepUtil;

public class TestExpreeNotify {
	
	private static ExpressNotify express=new ExpressNotify(0, ExpressNotify.CITY);
	
	public static class TestKm implements Runnable{

		public void run() {
			express.waitKm();
		}
		
	}
	
	public static class TestSite implements Runnable{

		public void run() {
			express.waitSite();
		}
	}
	
	public static void main(String[] args) {
		for (int i = 0; i < 3; i++) {
			new Thread(new TestKm()).start();
		}
		
		for (int i = 0; i < 3; i++) {
			new Thread(new TestSite()).start();
		}
		SleepUtil.sleepSecond(11);
		express.changeKm();
		//express.changeSite();
	}
}
